package com.helin.helinhealth.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 数据导出请求DTO
 */
@Data
@Schema(description = "数据导出请求")
public class ExportRequest {
    
    /**
     * 导出类型(1-健康记录, 2-用药记录, 3-紧急呼叫记录)
     */
    @Schema(description = "导出类型(1-健康记录, 2-用药记录, 3-紧急呼叫记录)", required = true)
    private Integer type;
    
    /**
     * 开始日期
     */
    @Schema(description = "开始日期(格式:yyyy-MM-dd)", example = "2025-01-01")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;
    
    /**
     * 结束日期
     */
    @Schema(description = "结束日期(格式:yyyy-MM-dd)", example = "2025-04-30")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;
    
    /**
     * 导出格式(1-Excel, 2-PDF, 3-CSV)
     */
    @Schema(description = "导出格式(1-Excel, 2-PDF, 3-CSV)", defaultValue = "1")
    private Integer format;
} 